/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.eam.data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Eam_Facilities_DC_Point (stored in table Eam_Facilities_DC_Point).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EamFacilitiesDCPoint extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Eam_Facilities_DC_Point";
    public static final String ENTITY_NAME = "Eam_Facilities_DC_Point";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_EAMFACILITIES = "eamFacilities";
    public static final String PROPERTY_NAME = "name";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_COLLECTIONTIME = "collectionTime";
    public static final String PROPERTY_TIME = "time";
    public static final String PROPERTY_FULLNAME = "fullName";
    public static final String PROPERTY_POINTTYPE = "pointType";
    public static final String PROPERTY_ALARMTYPE = "alarmType";
    public static final String PROPERTY_SWITCHALARM = "switchAlarm";
    public static final String PROPERTY_ALARMMIN = "alarmMin";
    public static final String PROPERTY_ALARMMAX = "alarmMax";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_STATUS = "status";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_DCPOINT = "dcPoint";
    public static final String PROPERTY_POIMTANT = "poimtant";
    public static final String PROPERTY_ALARMLOGIC = "alarmLogic";
    public static final String PROPERTY_STORGESTYLE = "storgeStyle";
    public static final String PROPERTY_EAMFACILITIESLOGIC = "eamFacilitiesLogic";
    public static final String PROPERTY_NEWVALUE = "newValue";
    public static final String PROPERTY_NEWTIME = "newTime";
    public static final String PROPERTY_EAMCHECKPLANLIST = "eamCheckPlanList";
    public static final String PROPERTY_EAMEQUIPMENTSHUTDOWNLIST = "eamEquipmentShutdownList";
    public static final String PROPERTY_EAMFACILITIESDCVALUELIST = "eamFacilitiesDCValueList";
    public static final String PROPERTY_EAMFACILITIESRTLOGLIST = "eamFacilitiesRtLogList";

    public EamFacilitiesDCPoint() {
        setDefaultValue(PROPERTY_TIME, (long) 1);
        setDefaultValue(PROPERTY_POINTTYPE, "10");
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_DCPOINT, true);
        setDefaultValue(PROPERTY_POIMTANT, false);
        setDefaultValue(PROPERTY_EAMCHECKPLANLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMEQUIPMENTSHUTDOWNLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMFACILITIESDCVALUELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMFACILITIESRTLOGLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public EamFacilities getEamFacilities() {
        return (EamFacilities) get(PROPERTY_EAMFACILITIES);
    }

    public void setEamFacilities(EamFacilities eamFacilities) {
        set(PROPERTY_EAMFACILITIES, eamFacilities);
    }

    public String getName() {
        return (String) get(PROPERTY_NAME);
    }

    public void setName(String name) {
        set(PROPERTY_NAME, name);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public String getCollectionTime() {
        return (String) get(PROPERTY_COLLECTIONTIME);
    }

    public void setCollectionTime(String collectionTime) {
        set(PROPERTY_COLLECTIONTIME, collectionTime);
    }

    public Long getTime() {
        return (Long) get(PROPERTY_TIME);
    }

    public void setTime(Long time) {
        set(PROPERTY_TIME, time);
    }

    public String getFullName() {
        return (String) get(PROPERTY_FULLNAME);
    }

    public void setFullName(String fullName) {
        set(PROPERTY_FULLNAME, fullName);
    }

    public String getPointType() {
        return (String) get(PROPERTY_POINTTYPE);
    }

    public void setPointType(String pointType) {
        set(PROPERTY_POINTTYPE, pointType);
    }

    public String getAlarmType() {
        return (String) get(PROPERTY_ALARMTYPE);
    }

    public void setAlarmType(String alarmType) {
        set(PROPERTY_ALARMTYPE, alarmType);
    }

    public String getSwitchAlarm() {
        return (String) get(PROPERTY_SWITCHALARM);
    }

    public void setSwitchAlarm(String switchAlarm) {
        set(PROPERTY_SWITCHALARM, switchAlarm);
    }

    public BigDecimal getAlarmMin() {
        return (BigDecimal) get(PROPERTY_ALARMMIN);
    }

    public void setAlarmMin(BigDecimal alarmMin) {
        set(PROPERTY_ALARMMIN, alarmMin);
    }

    public BigDecimal getAlarmMax() {
        return (BigDecimal) get(PROPERTY_ALARMMAX);
    }

    public void setAlarmMax(BigDecimal alarmMax) {
        set(PROPERTY_ALARMMAX, alarmMax);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public Long getStatus() {
        return (Long) get(PROPERTY_STATUS);
    }

    public void setStatus(Long status) {
        set(PROPERTY_STATUS, status);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public Boolean isDcPoint() {
        return (Boolean) get(PROPERTY_DCPOINT);
    }

    public void setDcPoint(Boolean dcPoint) {
        set(PROPERTY_DCPOINT, dcPoint);
    }

    public Boolean isPoimtant() {
        return (Boolean) get(PROPERTY_POIMTANT);
    }

    public void setPoimtant(Boolean poimtant) {
        set(PROPERTY_POIMTANT, poimtant);
    }

    public String getAlarmLogic() {
        return (String) get(PROPERTY_ALARMLOGIC);
    }

    public void setAlarmLogic(String alarmLogic) {
        set(PROPERTY_ALARMLOGIC, alarmLogic);
    }

    public String getStorgeStyle() {
        return (String) get(PROPERTY_STORGESTYLE);
    }

    public void setStorgeStyle(String storgeStyle) {
        set(PROPERTY_STORGESTYLE, storgeStyle);
    }

    public EamFacilitiesLogic getEamFacilitiesLogic() {
        return (EamFacilitiesLogic) get(PROPERTY_EAMFACILITIESLOGIC);
    }

    public void setEamFacilitiesLogic(EamFacilitiesLogic eamFacilitiesLogic) {
        set(PROPERTY_EAMFACILITIESLOGIC, eamFacilitiesLogic);
    }

    public String getNewValue() {
        return (String) get(PROPERTY_NEWVALUE);
    }

    public void setNewValue(String newValue) {
        set(PROPERTY_NEWVALUE, newValue);
    }

    public Date getNewTime() {
        return (Date) get(PROPERTY_NEWTIME);
    }

    public void setNewTime(Date newTime) {
        set(PROPERTY_NEWTIME, newTime);
    }

    @SuppressWarnings("unchecked")
    public List<EamCheckPlan> getEamCheckPlanList() {
      return (List<EamCheckPlan>) get(PROPERTY_EAMCHECKPLANLIST);
    }

    public void setEamCheckPlanList(List<EamCheckPlan> eamCheckPlanList) {
        set(PROPERTY_EAMCHECKPLANLIST, eamCheckPlanList);
    }

    @SuppressWarnings("unchecked")
    public List<EamEquipmentShutdown> getEamEquipmentShutdownList() {
      return (List<EamEquipmentShutdown>) get(PROPERTY_EAMEQUIPMENTSHUTDOWNLIST);
    }

    public void setEamEquipmentShutdownList(List<EamEquipmentShutdown> eamEquipmentShutdownList) {
        set(PROPERTY_EAMEQUIPMENTSHUTDOWNLIST, eamEquipmentShutdownList);
    }

    @SuppressWarnings("unchecked")
    public List<EamFacilitiesDCValue> getEamFacilitiesDCValueList() {
      return (List<EamFacilitiesDCValue>) get(PROPERTY_EAMFACILITIESDCVALUELIST);
    }

    public void setEamFacilitiesDCValueList(List<EamFacilitiesDCValue> eamFacilitiesDCValueList) {
        set(PROPERTY_EAMFACILITIESDCVALUELIST, eamFacilitiesDCValueList);
    }

    @SuppressWarnings("unchecked")
    public List<EamFacilitiesRtLog> getEamFacilitiesRtLogList() {
      return (List<EamFacilitiesRtLog>) get(PROPERTY_EAMFACILITIESRTLOGLIST);
    }

    public void setEamFacilitiesRtLogList(List<EamFacilitiesRtLog> eamFacilitiesRtLogList) {
        set(PROPERTY_EAMFACILITIESRTLOGLIST, eamFacilitiesRtLogList);
    }

}
